package com.changgou.orders.feign;

import com.changgou.orders.pojo.Order;
import com.changgou.orders.pojo.OrderItem;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(name = "orders")
@RequestMapping("/order")
public interface OrderFeign {
    @RequestMapping(value = "/{id}")
    public Result update(@RequestBody Order order, @PathVariable String id);

    @RequestMapping(value = "/{myOrder}")
    public Result getmyOrder();

}
